<title>跟单设置</title>
<div class="center" id="cansel">
	<div class="wrap">
		 <a>如果您的信号源的当前持仓中还有跟随信号源的订单，取消跟单前请选择以下的方式进行处理：</a>
                   <hr />
       <!--<div class="mui-clearfix">
        <p class="lfloat">立即平仓正在跟随的订单</p>
       	<span class="rfloat yesBtn bgGreen"><i class="mui-icon mui-icon-checkmarkempty"></i></span>
       </div>
       <div class="mui-clearfix">
        <p class="lfloat">与信号源同步平仓已跟随的订单</p>
       	<span class="rfloat yesBtn lightGray"><i class="mui-icon mui-icon-checkmarkempty"></i></span>
       </div>-->
     
       <div class="mui-clearfix">
        <p class="lfloat">立即平仓正在跟随的订单并解除跟单</p>
       	<span class="rfloat yesBtn lightGray"><i class="mui-icon mui-icon-checkmarkempty"></i></span>
       </div>
        <div class="mui-clearfix">
        <p class="lfloat">与信号源同步平仓已跟随的订单并解除跟单</p>
       	<span class="rfloat yesBtn lightGray"><i class="mui-icon mui-icon-checkmarkempty"></i></span>
       </div>
		
	</div>
</div>
        <button type="button"  class="mui-btn mui-btn-primary" style="width: 44%;margin: 0.238em 0 0.938em 0.938em;height:3.125em" ng-click="canselGen()">
    		确认取消</button>
    	<button type="button"  ng-disabled="switch"  class="mui-btn mui-btn-primary mui-btn-outlined" onclick="cansel()" style="width: 44%;margin: 0.238em 0 0.938em 0.938em;height: 3.125em;"  >取消</button>
    	
    	
    	 <br />
         <br />
         <br />
         <br />
<script>
	  $('.yesBtn').on("tap",function(){
   	if($(this).hasClass("bgGreen")){
   	   $(this).addClass('lightGray');
   	   $(this).removeClass("bgGreen"); 	
   	  
   	}
   	else{
   		$(this).addClass('bgGreen');
   	   $(this).removeClass("lightGray"); 
   	    $(this).parent().siblings().children('.yesBtn').removeClass("bgGreen");
   	    $(this).parent().siblings().children('.yesBtn').addClass("lightGray");
   	    
   	}
   	

   })
	 function cansel(){
		window.location.href="#/documentary"
	 	
	 }
	 
	 function sure(){
	 	   $('.yesBtn').each(function(){
	 	   	  if( $(this).hasClass("bgGreen")){
	 	   	  	console.log($(this).prev().html())
	 	   	  }
	 	   	  
	 	   })
	 }
</script>